modelbutton: Avoid a crash
authorMatthias Clasen <mclasen@redhat.com>
Mon, 5 Apr 2021 18:06:42 +0000 (14:06 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Mon, 5 Apr 2021 18:06:42 +0000 (14:06 -0400)
commit303ff60d5e90e667cc7f6da17f363b745437238a
tree1814d2f569d190ebe039c3a19c0be09737becd9e
parentb79eb55b34c9f3126450ee23f876f0b36d9b19fa
modelbutton: Avoid a crash

We may not have a popover menu ancestor. The check for
this was forgotten in one of the branches here.

Fixes: #3831
gtk/gtkmodelbutton.c